fix(agent): preserve lark-cli credentials with isolated HOME - #234
Open
BackFire wants to merge 1 commit into
Open
fix(agent): preserve lark-cli credentials with isolated HOME#234BackFire wants to merge 1 commit into
BackFire wants to merge 1 commit into
Conversation
Author
|
@zeno06111-lab, could you take a look? You are the primary historical author across the affected agent environment and prompt files. GitHub does not permit a fork contributor to submit a formal review request on this upstream repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LARKSUITE_CLI_DATA_DIRon Linux from the OS account home so an isolated agentHOMEdoes not hide the lark-cli keychainlark-clibefore agent launch, expose its absolute path, and tell bridge agents to use it when login shells resetPATHWhy
Bridge profiles can isolate
HOMEfor Codex or the daemon while the lark-cli App Secret remains in the service account keychain. lark-cli then searches the isolated home and API calls fail withinvalid_client/invalid param.Separately, non-interactive login shells can replace the inherited
PATH, making a valid lark-cli installation fail withcommand not found. Passing only a modifiedPATHis therefore insufficient; agents need the resolved absolute executable path.No App Secret is exposed through the agent environment.
Validation
pnpm test(99 files, 627 tests)pnpm typecheckpnpm buildgit diff --checkHOME:auth status --verifyreturnedverified: true, andim +chat-list --as botreturnedok: true